package co.com.smart.persistence.entity;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import co.com.smart.persistence.entity.dto.SmartCita;
import co.com.smart.persistence.entity.util.AbstractFacade;

/**
 * Session Bean implementation class CitasFacade
 */
@Stateless(
		name		= "CitasFacade", 
		mappedName 	= "ejb/CitasFacade")
public class CitasFacade extends AbstractFacade<SmartCita> implements CitasFacadeLocal {

		@PersistenceContext(unitName = "SnakeServicesPU")
		private EntityManager em;
		/**
		 * Default constructor. 
		 */
		public CitasFacade() {
			super(SmartCita.class);
		}
		
		@Override
		protected EntityManager getEntityManager() {
			return em;
		}

}
